package cn.bgs.controller;

import cn.bgs.pojo.Complaints;
import cn.bgs.service.IComplaintsService;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RequestMapping("sTousu")
@RestController
public class TousuController {
    @Autowired
    private IComplaintsService iComplaintsService;

    @RequestMapping("findAll")
    public List<Complaints> findAll(@Param("id") Integer id,@Param("zhangt") String zhangt,@Param("name") String name){

        return iComplaintsService.findAll(id,zhangt,name);
    }
    @RequestMapping("findById")
    public List<Complaints> findById(Integer id){

        return iComplaintsService.findById(id);
    }
}
